home *** CD-ROM | disk | FTP | other *** search
/ Pesquisa Dirigida / Pesquisa Dirigida.iso / JOGOS / frogger.swf / scripts / DefineSprite_141 / frame_10 / DoAction.as
Text File  |  2005-01-07  |  365b  |  11 lines

  1. obj1_x = getProperty("/frosch", _X);
  2. obj2_x = getProperty("/schild8", _X);
  3. delta_x = obj1_x - obj2_x;
  4. obj1_y = getProperty("/frosch", _Y);
  5. obj2_y = getProperty("/schild8", _Y);
  6. delta_y = obj1_y - obj2_y;
  7. if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
  8. {
  9.    setProperty("/frosch", _X, getProperty("/schild8", _X));
  10. }
  11.